var express = require('express');
var router = express.Router();
const userCon = require('../controllers/user')


router.post("/collect", userCon.collect)
router.post("/uncollect", userCon.uncollect)
router.post("/islogin", function (req, res){
    res.send(req.session.login);
})

// 评分接口
router.post("/ranking", userCon.rank)

module.exports = router;